package com.yuyou.hxyy.service.api.vo.resp;

import com.alibaba.fastjson.JSONObject;

import io.swagger.annotations.ApiModelProperty;


/**
 * @author 
 */
public class RespLogin{
	
	private String accessToken; 
	
	@ApiModelProperty(example = "用户ID")
	private Long userId;
	
	@ApiModelProperty(example = "用户名")
	private String username;
		
	@ApiModelProperty(example = "用户类型，0：学生，1：管理员")
	private Integer userType;
	
	@ApiModelProperty(example = "学习状态：0、未学习 ， 1、正在学")
	private Integer learn;

	@ApiModelProperty(example = "头像url")
	private String headImg;

	public String getAccessToken() {
		return accessToken;
	}

	public void setAccessToken(String accessToken) {
		this.accessToken = accessToken;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public Integer getUserType() {
		return userType;
	}

	public void setUserType(Integer userType) {
		this.userType = userType;
	}

	public String getHeadImg() {
		return headImg;
	}

	public void setHeadImg(String headImg) {
		this.headImg = headImg;
	}
	
	public String toJson() {
		return JSONObject.toJSONString(this,true);
	}

	public Integer getLearn() {
		return learn;
	}

	public void setLearn(Integer learn) {
		this.learn = learn;
	}


	
	
	
	
	
	
	
 
}